package cn.bigcontainer.alt.sys.exception;

import cn.bigcontainer.alt.common.exception.BigException;
import cn.bigcontainer.alt.common.exception.BigResultCode;

public class SysException extends BigException {

    public SysException() {
    }

    public SysException(BigResultCode code, Object... args) {
        super(code, args);
    }

    public SysException(Throwable cause, BigResultCode code, Object... args) {
        super(cause, code, args);
    }

    public static final BigResultCode ERR_LOGIN = new BigResultCode (102, "用户名或者密码不正确！");
    public static final BigResultCode ERR_LOGIN_NOT = new BigResultCode (103, "请登录！");
    public static final BigResultCode ERR_PERMISSION = new BigResultCode (104, "该用户还没有访问权限！");

    public static final BigResultCode ERR_MENU_APP = new BigResultCode (110, "菜单关联的应用%s不存在！");
}
